package com.tourism.exception;

import lombok.Data;

/**
 * @Description
 * @Author z
 * @Date 2021-04-03 23:05
 */
@Data
public class GlobalException extends Exception {
    private ExceptionEnum exceptionEnum;

    public GlobalException(ExceptionEnum exceptionEnum) {

        super(exceptionEnum.getMessage());
        this.exceptionEnum = exceptionEnum;
    }
}
